package HomeWork.test;

public class Subway {
    private String id;
    private String name;
    private String roadway;

    public Subway() {
    }

    public Subway(String id, String name, String roadway) {
        this.id = id;
        this.name = name;
        this.roadway = roadway;
    }

    /**
     * 获取
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return roadway
     */
    public String getRoadway() {
        return roadway;
    }

    /**
     * 设置
     * @param roadway
     */
    public void setRoadway(String roadway) {
        this.roadway = roadway;
    }

    public String saveStr(){
        return id + "," + name + "," + roadway;
    }

    public String toString() {
        return  id + "\t\t" + name + "\t\t" + roadway;
    }
}
